package com.alks.function.data.dto.procurement;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@NoArgsConstructor
@ApiModel(value="订购单")
public class SummaryMaterialsDto {
    @ApiModelProperty(value = "指令",name = "lotNo")
    private String lotNo;

    @ApiModelProperty(value = "类型",name = "type")
    private String type;

    @ApiModelProperty(value = "汇总号/版本号",name = "sumNo")
    private String sumNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    //@JsonFormat(pattern = "yyyy-MM-dd ", timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "汇总日期 变更日期",name = "reqDate")
    private Date sysDate;

    @ApiModelProperty(value = "物料编码",name = "mtlNo")
    private String mtlNo;

    @ApiModelProperty(value = "材料颜色",name = "mtlColor")
    private String mtlColor;

    @ApiModelProperty(value = "材料名称",name = "mtlName")
    private String mtlName;

    @ApiModelProperty(value = "规格",name = "mtlSpec")
    private String mtlSpec;

    @ApiModelProperty(value = "单位",name = "mtlUnit")
    private String mtlUnit;

    @ApiModelProperty(value = "需求量/原用量",name = "yQty")
    private BigDecimal yQty;

    @ApiModelProperty(value = "预加量/现用量",name = "xQty")
    private BigDecimal xQty;

    @ApiModelProperty(value = "订购量/差异量",name = "cyQty")
    private BigDecimal cyQty;

    @ApiModelProperty(value = "备注信息 变更原因",name = "remark")
    private String remark;

    @ApiModelProperty(value = "正单/订购单号",name = "purNo")
    private String purNo;

    @ApiModelProperty(value = "隐藏/未隐藏",name = "hideFlag")
    private String hideFlag;

    @ApiModelProperty(value = "公司ID")
    private String companyId;

    @ApiModelProperty(value = "请购单号")
    private String reqNo;

    private BigDecimal purQty;

    private BigDecimal ttlUsage;

    private String reqFlag;

    private String purFlag;

    private String sysUser;

    @ApiModelProperty(value = "型体")
    private String style;

    @ApiModelProperty(value = "颜色")
    private String color;

    private String brand;

    @ApiModelProperty(value = "客户")
    private String custom;

    @ApiModelProperty(value = "物料分类编号")
    private String typeNo;

    @ApiModelProperty(value = "物料分类")
    private String typeName;
}
